fid = fopen('tag_text.csv');
C = textscan(fid, '%d,%s');
C2 = C(2);
tags = C2{1};
fclose(fid);

fid = fopen('tag_name.txt','wt');
load('meetup_small_1.mat');
for i = 1:length(user_tag_new)
    user = user_tag_new(i, 1);
    tag_id = tag_table(user_tag_new(i, 2), 2);
    fprintf(fid,'%s\n',tags{tag_id});
end

load('meetup_small_2.mat');
for i = 1:length(user_tag_new)
    user = user_tag_new(i, 1);
    tag_id = tag_table(user_tag_new(i, 2), 2);
    fprintf(fid,'%s\n',tags{tag_id});
end

load('meetup_small_3.mat');
for i = 1:length(user_tag_new)
    user = user_tag_new(i, 1);
    tag_id = tag_table(user_tag_new(i, 2), 2);
    fprintf(fid,'%s\n',tags{tag_id});
end